import 'package:core_demo/helper/config/route.dart';
import 'package:flutter/material.dart';
import 'package:core/core.dart';

class ThirdPage extends StatelessWidget {
  const ThirdPage({super.key});

  @override
  Widget build(BuildContext context) {
    return BaseRoot(
      title: '这是第三个页面',
      body: Center(
        child:InkWell(
          onTap: (){
            NavigatorHelper.pushNamed(context, RouteName.fourth);
          },
          child: Container(
            padding: EdgeInsets.symmetric(horizontal: 20.px, vertical: 30.px),
            margin: EdgeInsets.symmetric(horizontal: 20.px,vertical: 30.px),
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(20.px),
              border: Border.all(color: Colors.yellow,width: 2.px),
            ),
            child: Text(
              '这是第三个页面',
              style: Colors.red.toStyle(32.px).withBold.withItalic,
              // style: TextStyle(
              //   color: Colors.red,
              //   fontSize: 32.px,
              //   fontWeight: FontWeight.bold,
              //   fontStyle: FontStyle.italic,
              // ),
            ),
          ),
        ),
      ),
    );
  }
}
